<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="system">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_system('bulletin')}</ul>
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>系统公告</h2></div>
                <div class="sect">
                    <form id="login-user-form" method="post" enctype="multipart/form-data" action="/manage/system/bulletin.php">
					<input type="hidden" name="id" value="{$system['id']}" />
						<div class="wholetip clear"><h3>1、图片轮播设置</h3></div>
                        <div class="field">
       
                        <ul id="lunbo_upload">
                        <li>
                        <img class="lunbo_img" id="lunbo_img_1" <!--{if $lunbo['value']['image1']}--> src="${lunbo_image($lunbo['value']['image1'])}" <!--{/if}-->/>
                        <input type="file" size="30" name="upload_image" id="team-create-image" />
                        <a href="javascript:;" onclick="X.team.limageremove(1);">删除</a>
                        </li>
                        <li>
                         <img class="lunbo_img" id="lunbo_img_2" <!--{if $lunbo['value']['image2']}-->src="${lunbo_image($lunbo['value']['image2'])}" <!--{/if}--> />
                        <input type="file" size="30" name="upload_image1" id="team-create-image" />
                        <a href="javascript:;" onclick="X.team.limageremove(2);">删除</a>
                        </li>
                        <li>
                         <img class="lunbo_img" id="lunbo_img_3" <!--{if $lunbo['value']['image3']}-->src="${lunbo_image($lunbo['value']['image3'])}" <!--{/if}--> />
                        <input type="file" size="30" name="upload_image2" id="team-create-image" />
                        <a href="javascript:;" onclick="X.team.limageremove(3);">删除</a>
                        </li>
                        </ul>

                        </div>
						<div class="wholetip clear"><h3>2、全局公告</h3></div>
                        <div class="field">
                            <label>全局公告</label>
                            <div style="float:left;"><textarea cols="45" rows="5" name="bulletin[0]" id="system-create-location" class="f-textarea editor">${htmlspecialchars($INI['bulletin'][0])}</textarea></div>
                        </div>
						<div class="wholetip clear"><h3>3、城市公告</h3></div>
					<!--{loop $hotcities $one}-->
                        <div class="field">
                            <label>{$one['name']}</label>
                            <div style="float:left;"><textarea cols="45" rows="5" name="bulletin[{$one['id']}]" id="system-create-location{$one['id']}" class="f-textarea editor">${htmlspecialchars($INI['bulletin'][$one['id']])}</textarea></div>
						</div>
					<!--{/loop}-->
                        <div class="act">
                            <input type="submit" value="保存" name="commit" id="system-submit" class="formbutton"/>
                        </div>
                    </form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->


<script type="text/javascript">
window.x_init_hook_page = function() {
	X.team.limageremovecall = function(id) {
		jQuery('#lunbo_img_'+id).remove();
	};
	X.team.limageremove = function(id) {
		return !X.get(WEB_ROOT + '/ajax/misc.php?action=limageremove&id='+id);
	};
};
</script>

<!--{include manage_footer}-->
